package net.lab1024.sa.admin.module.shell;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import net.lab1024.sa.admin.module.shell.domain.ShellEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Mapper
@Component
public interface ShellDao extends BaseMapper<ShellEntity> {
    /**
     * 根据脚本类型、上游标识、系统类型查询执行命令
     */
    String getCommandByShellTypeAndUpstreamAndOsType(@Param("shellType") Integer shellType,
                                                   @Param("upstreamCode") Integer upstream,
                                                   @Param("osType") String osType);
}
